﻿using DesignPatterns.Factory.Interface;
using DesignPatterns.Factory.Model;

namespace DesignPatterns.Factory.ImpService
{
    public class HightShopFactory : IFruitShopFactory
    {
        public Fruit CreateApple()
        {
            IFruitFactory factory = new GoodAppleFactory();
            return factory.CreateFruit();
        }

        public Fruit CreateOrange()
        {
            IFruitFactory factory = new GoodOrangeFactory();
            return factory.CreateFruit();   
        }
    }
}
